package com.richo.manage;

import java.util.ArrayList;
import java.util.List;

import com.richo.db.bean.Staff;

public class Test {
	public static void main(String[] args) {
		Staff staff1 = new Staff();
		staff1.setContinue_rest_days(1);
		Staff staff2 = new Staff();
		staff2.setContinue_rest_days(1);
		List<Staff> list = new ArrayList<>();
		list.add(staff2);
		list.add(staff1);
		test(list);
		Staff staff = list.get(0);
		System.out.println(staff.getContinue_rest_days());
	}
	
	
	public static void test(List<Staff> list){
		for (int i = 0; i < list.size(); i++) {
			Staff staff = list.get(i);
			staff.setContinue_rest_days(99);
		}
	}
}
